﻿using DAO;
using DTO;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BLL
{
    public class TrongTai_BLL
    {
        public static DataTable SelectAll()
        {
            return TrongTai_DAO.SelectAll();
        }

        public static TrongTai_DTO SelectByID(int id)
        {
            return TrongTai_DAO.SelectByID(id);
        }
        public static DataTable SelectByTen(string ten)
        {
            return TrongTai_DAO.SelectByTen(ten);
        }
        public static void Insert(TrongTai_DTO dto)
        {
            TrongTai_DAO.Insert(dto);
        }
        public static void Update(TrongTai_DTO dto)
        {
            TrongTai_DAO.Update(dto);
        }
        public static void Delete(int ma)
        {
            TrongTai_DAO.Delete(ma);
        }
        static public DataTable SelectLikeTen(string ten)
        {
            return TrongTai_DAO.SelectLikeTen(ten);
        }
    }
}
